package org.onvivals.module.ums.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.onvivals.common.base.BaseEntity;

import java.io.Serial;

@Getter
@Setter
@Accessors(chain = true)
@TableName("ums_feedback")
@Schema(description="反馈")
public class UmsFeedBack extends BaseEntity<UmsFeedBack> {

	@Serial
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using= ToStringSerializer.class)
	@Schema(description="id")
	private Long id;

	/**
	 * 内容
	 */
	@TableField(value = "content")
	@Schema(description="内容")
	private String content;

	/**
	 * 用户ID
	 */
	@TableField(value = "uid")
	@Schema(description="用户ID")
	private Long uid;

	@TableField(exist = false)
	private String userName;


}
